const mysql = require('mysql');
const co = require('co-mysql');
const config = require('../config')

let conn = mysql.createPool({
  host: config.DB_HOST,
  user: config.BD_USER,
  password: config.DB_PASS,
  database: config.DB_NAME
});

module.exports = co(conn);